//------------------------------------------------------------------------------
//	Copyright and Disclaimer Notice
//
//	Copyright (c) 2012 A.C. Verbeck
//
//	This file is part of SM: A State Machine Library.
//
//	SM is free software: you can redistribute it and/or modify
//	it under the terms of the GNU General Public License as published by
//	the Free Software Foundation, either version 3 of the License, or
//	(at your option) any later version.
//
//	SM is distributed in the hope that it will be useful,
//	but WITHOUT ANY WARRANTY; without even the implied warranty of
//	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//	GNU General Public License for more details.
//
//	You should have received a copy of the GNU General Public License
//	along with SM.  If not, see <http://www.gnu.org/licenses/>.
//
//------------------------------------------------------------------------------

#include <stdint.h>
#include <stdbool.h>

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>

#include "pfc.h"
#include "debug.h"

//------------------------------------------------------------------------------
// Main function
//------------------------------------------------------------------------------
int main(int argc, char *argv[])
{
	char t_buff[128];

	pf("Test 1.1: this is a test\n");
	pf("Test 1.2: digit test: %d\n",9);
	pf("Test 1.3: string test: %s\n",__FILE__);
	pf("Test 1.4: file: %s, line: %d, function: %s\n\n",__FILE__, __LINE__, __func__);

	spf(t_buff, "Test 2.1: this is a test\n");
	pf(t_buff);
	spf(t_buff, "Test 2.2: digit test: %d\n", 9);
	pf(t_buff);
	spf(t_buff, "Test 2.3: string test: %s\n",__FILE__);
	pf(t_buff);
	spf(t_buff, "Test 2.4: file: %s, line: %d, function: %s\n\n",__FILE__, __LINE__, __func__);
	pf(t_buff);

	TRACE(INFO, "Test 3.1: this is a test");
	TRACE(INFO, "Test 3.2: digit test: %d", 9);
	TRACE(INFO, "Test 3.3: string test: %s", __FILE__);
	TRACE(INFO, "Test 3.4: file: %s, line: %d function: %s\n",__FILE__, __LINE__, __func__);

	return 0;
}

//
//	 End of main.c
//
